package com.yoyo.itravel.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 用户收藏实体类
 *
 * @author HZX
 * @date 2020/5/20 22:15
 */
public class SightCollect implements Serializable {

    private String userId; // 用户id
    private User user;

    private String sightId; // 景点id
    private Sight sight;

    private Date collectTime; // 收藏时间

    public SightCollect() {
    }

    public SightCollect(String userId, String sightId, Date collectTime) {
        this.userId = userId;
        this.sightId = sightId;
        this.collectTime = collectTime;
    }

    public SightCollect(String userId, User user, String sightId, Sight sight, Date collectTime) {
        this.userId = userId;
        this.user = user;
        this.sightId = sightId;
        this.sight = sight;
        this.collectTime = collectTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getSightId() {
        return sightId;
    }

    public void setSightId(String sightId) {
        this.sightId = sightId;
    }

    public Sight getSight() {
        return sight;
    }

    public void setSight(Sight sight) {
        this.sight = sight;
    }

    public Date getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Date collectTime) {
        this.collectTime = collectTime;
    }

    @Override
    public String toString() {
        return "SightCollect{" +
                "userId='" + userId + '\'' +
                ", user=" + user +
                ", sightId='" + sightId + '\'' +
                ", sight=" + sight +
                ", collectTime=" + collectTime +
                '}';
    }
}
